#include <list>
#include <iostream>

using std::list;
using std::cout;

int main(int argc, char const *argv[])
{
    list<int> l({1,2,3,4,5});

    l.splice(l.begin(),l,++l.begin());

    for(auto &item : l)
    {
        cout << item << "\n";
    }
    cout << "\n";
    getchar();
    return 0;
}
